package org.yoao.crm.bean;
/**
 * @author yxwonline.com
 * @description
 * @date 2010-7-31 下午11:42:48
 */
public class Customer {
	private int id;//自增主键
	private String customerId;//客户唯一码
	private String idCard;//身份证
	private String customerName; //联系人
	private String companyName;//公司名称
	private String province;//省份
	private String city;//城市
	private String phone;//电话
	private String mobile;//手机
	private String mobile2;//手机
	private String QQ;//QQ
	private String email;//email
	private String birthday;//生日
	private int isNew;//是否启用客户旧信息 1=启用旧信息  0=不启用旧信息
	private int signature;//已签到
	private String userSno;//登记人
	private String nickName;//登记人昵称
	private String position; //级别
	private String state;//客户状态
	private String roleId;//角色
	private String roleName;//角色名称
	private String createTime;//创建时间
	private String modifyTime;//修改时间
	private String memo;//备注

	private String amount;//金额

	private String signTime;//签到时间
	private String payTime; //支付时间

	private String type; //ABCD类型
	
	private String assigner; //分配者

	public String getCustomerId() {
		if("null".equals(customerId)) customerId = "";
		return customerId;
	}
	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getCompanyName() {
		if(companyName == null || "null".equals(companyName)) companyName = "";
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getProvince() {
		if(province == null || "null".equals(province)) province = "";
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		if(city == null || "null".equals(city)) city = "";
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getPhone() {
		if(phone == null || "null".equals(phone)) phone = "";
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public String getMobile2() {
		return mobile2;
	}
	public void setMobile2(String mobile2) {
		this.mobile2 = mobile2;
	}
	public String getQQ() {
		if(QQ == null || "null".equals(QQ)) QQ = "";
		return QQ;
	}
	public void setQQ(String qQ) {
		QQ = qQ;
	}
	public String getEmail() {
		if(email == null || "null".equals(email)) email = "";
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public int getIsNew() {
		return isNew;
	}
	public void setIsNew(int isNew) {
		this.isNew = isNew;
	}
	public int getSignature() {
		return signature;
	}
	public void setSignature(int signature) {
		this.signature = signature;
	}
	public String getUserSno() {
		return userSno;
	}
	public void setUserSno(String userSno) {
		this.userSno = userSno;
	}
	public String getPosition() {
		if(position == null || "null".equals(position)) position = "";
		return position;
	}
	public void setPosition(String position) {
		this.position = position;
	}
	public String getState() {
		if(state == null || "null".equals(state)) state = "";
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getCreateTime() {
		if(createTime == null || "null".equals(createTime)) createTime = "";
		return createTime;
	}
	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	public String getModifyTime() {
		if(modifyTime == null || "null".equals(modifyTime)) modifyTime = "";
		return modifyTime;
	}
	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getBirthday() {
		if(birthday == null || "null".equals(birthday)) birthday = "";
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}
	public String getMemo() {
		if(memo == null || "null".equals(memo)) memo = "";
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getAmount() {
		return amount;
	}
	public void setAmount(String amount) {
		this.amount = amount;
	}
	public String getSignTime() {
		return signTime;
	}
	public void setSignTime(String signTime) {
		this.signTime = signTime;
	}
	public String getPayTime() {
		if(payTime == null || payTime.trim().equalsIgnoreCase("null")) payTime = "";
		return payTime;
	}
	public void setPayTime(String payTime) {
		this.payTime = payTime;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getIdCard() {
		if("null".equalsIgnoreCase(idCard)){
			idCard = null;
		}
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getAssigner() {
		return assigner;
	}
	public void setAssigner(String assigner) {
		this.assigner = assigner;
	}
}